Jump to content


Photo
Template

CustomTag

template

  • Please log in to reply
4 replies to this topic

#1 TechAngel85

TechAngel85

    Akatosh

  • Administrator
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 12,696 posts

Posted 19 January 2016 - 02:36 AM

Custom Tag Templates

Purpose & Usage

Use this template to create a custom tag, as seen in the Step Guides' Changelogs, anywhere within a page's text. The tag is automatically formatted based on the parameters passed and is an inline element, meaning its use will not break the line.

Template

{{CustomTag|color=|size=|tag=}}

 
Parameters

  • color is the keyword entered which determines the text color; it also accepts all valid CSS.
  • size sets the font size. Default is 1.03em of current line's size. Accepts all valid CSS for font-size.
  • tag is the text displayed. Some specific tags are reserved for Step's use. See the chart on the wiki page for more details.


#2 DoubleYou

DoubleYou

    Wiki Stepper

  • Uber Moderator
  • PipPipPipPipPipPipPipPipPipPipPip
  • 4,736 posts

Posted 19 January 2016 - 04:13 AM

Simplified it a bit for you.



#3 Neovalen

Neovalen

    Talos

  • Mod Author
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,593 posts

Posted 19 January 2016 - 10:18 AM

Looks useful, thanks. :)
  • 0

#4 Darth_mathias

Darth_mathias

    Emperor

  • VIP-Supporter
  • PipPipPipPipPipPipPipPipPipPipPip
  • 4,080 posts

Posted 19 January 2016 - 02:54 PM

yes very useful indeed


  • 0

#5 TechAngel85

TechAngel85

    Akatosh

  • Administrator
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 12,696 posts

Posted 08 April 2020 - 09:27 PM

This template has been updated.

 

The update includes changes that will break previous uses of it. However, they were necessary to add more functionality and the content using this template is outdated, though I updated some of it. The updates are...

  • ...font color must now be defined using color parameter and keywords updated. This was to update the parameter to accept any valid CSS for the color property.
  • ...new parameter added to control the font size.
  • ...the tag's text must now be defined using the tag parameter. This was to help pass along user formatting and will allow other templates to be passed.
  • ...reserved some tags for Step's use. Inputting these tags will result in the default output for those tags. (see OP)




Also tagged with one or more of these keywords: template, Template

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users