Difference between revisions of "User:Blackmail/Sandbox/Sandbox"

From FamilySearch Wiki
Jump to navigation Jump to search
Line 12: Line 12:
 
==Subst==
 
==Subst==
  
{{ambox
+
{{#ifeq:{{{subst}}}|SUBST
| type      = style
+
|{{#if:
| image      = [[File:Question.png|40px|alt=Question mark]]
+
  |{{Error|Template {{Tlx|{{{name}}}}} has been incorrectly substituted.}}
| smallimage = [[File:Question.png|20px|alt=Question mark]]
+
}}[[Category:Pages with incorrectly substituted templates]]
| textstyle  = color: blue; font-weight: bold; font-style: italic;
+
}}{{#ifeq:{{{small}}}|left
| text      = Text for a big box, for the top of articles.
+
|{{Ambox/core
| smalltext = Text for the top of article sections.
+
  |small      = left
 +
  |type      = style
 +
  |image      = {{#if:[[File:Question.png|20px|alt=Question mark]]
 +
  |[[File:Question.png|20px|alt=Question mark]]
 +
  |[[File:Question.png|40px|alt=Question mark]]
 +
  }}
 +
  |imageright = {{#if:
 +
  |{{{smallimageright}}}
 +
  |
 +
  }}
 +
  |class      =
 +
  |style      =
 +
  |textstyle  = color: blue; font-weight: bold; font-style: italic;
 +
  |text      = {{#if:Text for the top of article sections.
 +
  |Text for the top of article sections.
 +
  |Text for a big box, for the top of articles.  
 +
  }}
 +
}}
 +
|{{Ambox/core
 +
  |type      = style
 +
  |image      = [[File:Question.png|40px|alt=Question mark]]
 +
  |imageright =
 +
  |class      =
 +
  |style      =
 +
  |textstyle = color: blue; font-weight: bold; font-style: italic;
 +
  |text      = Text for a big box, for the top of articles.
 +
  |date      = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
 +
  |{{#ifeq:¬|¬||{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
 +
  |
 +
  }}
 +
}}
 +
}}{{Category handler
 +
|main={{Ambox/category
 +
  |cat=
 +
  |all=
 +
  |cat2=
 +
  |all2=
 +
  |cat3=
 +
  |all3=
 +
  |date=
 +
}}
 +
|template={{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|<!--We are on a rootpage, not a /doc or /sandbox page-->{{#ifeq:|true
 +
    | <!--Don't categorise-->
 +
    | [[Category:Article message boxes|{{BASEPAGENAME}}]]
 +
    }}
 +
  }}
 +
}}{{#ifeq:{{FULLPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
 +
|{{#ifeq:{{{doc}}}|no|
 +
  |{{Documentation}}<!-- Transclude documentation on template page -->
 +
}}
 
}}
 
}}

Revision as of 15:47, 8 November 2018

Header[edit | edit source]

Subst[edit | edit source]