Template:SChar: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(Last name is now optional.)
(removing ; - the sub template generates its. Makes the code look a bit cleaner.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>[[{{#if: {{{Last|}}}|{{{Last}}},_|}}{{{First}}}/{{{Sub}}}|{{#if: {{{Color|}}}|<span style="{{TextColor|{{{Color|}}}}};">|}}{{{Title|{{{Sub}}}}}}]{{#if: {{{Color|}}}|</span>|}}]</includeonly><noinclude>
<includeonly>[[{{#if: {{{Last|}}}|{{{Last}}},_|}}{{{First}}}/{{{Sub}}}|{{#if: {{{Color|}}}|<span style="{{TextColor|{{{Color|}}}}}">|}}{{{Title|{{{Sub}}}}}}{{#if: {{{Color|}}}|</span>|}}]]</includeonly><noinclude>
==The Character Subpage (sChar) Template==
==The Character Subpage (sChar) Template==
This template makes a link to a subpage of a character in which it appears without the slash. Rather then have to create a link like this: <nowiki>[[CharLast,_CharFirst/Subpage]]</nowiki>, you can now just type this: <nowiki>{{sChar|First=CharFirst|Last=CharLast|Sub=Subpage|Title=Title}}</nowiki> and you will get the same link. If you want it colored, specify |Color=color. Title is optional, it will default to subpage if ommitted. Color is also optional. (You CAN omit Last name if you have none.)
This template makes a link to a subpage of a character in which it appears without the slash. Rather then have to create a link like this: <nowiki>[[CharLast,_CharFirst/Subpage]]</nowiki>, you can now just type this: <nowiki>{{sChar|First=CharFirst|Last=CharLast|Sub=Subpage|Title=Title}}</nowiki> and you will get the same link. If you want it colored, specify |Color=color. Title is optional, it will default to subpage if ommitted. Color is also optional. (You CAN omit Last name if you have none.)

Latest revision as of 02:28, 10 March 2015

The Character Subpage (sChar) Template

This template makes a link to a subpage of a character in which it appears without the slash. Rather then have to create a link like this: [[CharLast,_CharFirst/Subpage]], you can now just type this: {{sChar|First=CharFirst|Last=CharLast|Sub=Subpage|Title=Title}} and you will get the same link. If you want it colored, specify |Color=color. Title is optional, it will default to subpage if ommitted. Color is also optional. (You CAN omit Last name if you have none.)

If you have any questions, ask Ceciri. Based off of Rich's awesome Template:s