Difference between revisions of "Template:About"

From Moegirlpedia
Jump to: navigation, search
(Created page with "<includeonly><div class="notice dablink" style="font-size: small; margin: 1em 0em; padding: 0.2em 0em;"><table style="width: 100%; margin-left: -0.2em;"><tr style="vertical-al...")
(Tag: 方括号不配对)
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><div class="notice dablink" style="font-size: small; margin: 1em 0em; padding: 0.2em 0em;"><table style="width: 100%; margin-left: -0.2em;"><tr style="vertical-align: top; text-align: left;"><th style="width:28px; position: relative; top: {{#if: {{{offset|}}}|{{{offset|}}}|-2}}px;">[[File:Disambig_gray.svg|25px|link=Moegirlpedia:Disambiguation policy]]</th><th style="font-weight: inherit;"><!--
 
<includeonly><div class="notice dablink" style="font-size: small; margin: 1em 0em; padding: 0.2em 0em;"><table style="width: 100%; margin-left: -0.2em;"><tr style="vertical-align: top; text-align: left;"><th style="width:28px; position: relative; top: {{#if: {{{offset|}}}|{{{offset|}}}|-2}}px;">[[File:Disambig_gray.svg|25px|link=Moegirlpedia:Disambiguation policy]]</th><th style="font-weight: inherit;"><!--
-->{{#if:{{{post|{{{post2|}}}}}}||{{#if:{{{pre|{{{pre2|}}}}}}|{{{pre|{{{pre2|}}}}}}<br />}}}}<!--
+
-->{{#if:{{{post|}}}||{{#if: {{{pre|}}}|{{{pre|}}}<br />}}}}<!--
-->{{#if:{{{1||{{{description}}}}}}|<!--
+
-->{{#if:{{{1|{{{description}}}}}}|<!--
  -->This {{#if:{{{section|}}}|section|{{#switch:{{NAMESPACENUMBER}}|0=article|14=category|page}}}} is about {{{1|{{{description}}}}}}. }}<!--
+
  -->This {{#if:{{{section|}}}|section|{{#switch:{{NAMESPACENUMBER}}|0=article|14=category|page}}}} is about {{{1|{{{description|
-->For other uses of {{#if:{{{2|}}}|{{{2|}}}|{{#if:{{{disambiguation|}}}|{{{disambiguation|}}}|{{{3}}}}} }}, see {{{#if:{{{3|}}}|{{{disambiguation|}}}|"'''[[{{{3|{{disambiguation|}}}}}}'''" {{#ifeq:{{{4|}}}|and|{{{#if:{{{5|}}}|"'''[[{{{5|}}}]]'''" |{{Error|Error: Unspecified links for other use 1}}}}}|{{Error|Error: Unspecified links for other use 1}}}}. <!--
+
}}}}}}. }}<!--
-->{{#if:{{{2|}}}|{{{{#if:{{{4|}}}|<!--
+
-->&nbsp;For {{#if:{{{2|{{{otheruse|}}}}}}|{{{2|{{{otheruse|}}}}}}|{{#if:{{{disambiguation|}}}{{{disambiguation|}}}|other uses of {{{3}}}}}}}, see {{#if:{{{3|{{{othertitle|{{{disambiguation|}}}}}}}}}|"'''[[{{{3|{{{othertitle|{{{disambiguation|}}}}}}}}}]]'''" {{#ifeq:{{{4|}}}|and|and {{#if:{{{5|}}}|"'''[[{{{5}}}]]'''"|{{Error|Error: Unspecified link 2 for other use 1}}}}}}|{{Error|Error: Unspecified links for other use 1}}}}. <!--
  -->{{#ifeq:{{{4|}}}|and||<!--
+
-->{{#if:{{{2|}}}|{{#if:{{{4|}}}|<!--
   -->For {{#ifeq:other uses of {{{4}}}|1|{{{5}}}|{{{4}}}}}, see {{#if:{{{5|}}}|"'''[[{{{5}}}]]'''" {{#ifeq:{{{6|}}}|and|{{#if:{{{7|}}}|"'''[[{{{7}}}'''" |{{Error: Error: Unspecified links for other use 2}}}}}}|{{Error|Error: Unspecified links for other use 2}}}}.}}<!--
+
  -->{{#ifeq:{{{4|}}}|and||<!--"and" is a special character here
 +
   -->&nbsp;For {{#ifeq:{{{4}}}|1|other uses of {{{5}}}|{{{4}}}}}, see {{#if:{{{5|}}}|"'''[[{{{5}}}]]'''" {{#ifeq:{{{6|}}}|and|and {{#if:{{{7|}}}|"'''[[{{{7}}}]]'''" |{{Error|Error: Unspecified link 2 for other use 2}}}}}}|{{Error|Error: Unspecified links for other use 2}}}}.}}<!--
 
  -->{{#if:{{{6|}}}|<!--
 
  -->{{#if:{{{6|}}}|<!--
   -->{{#ifeq:{{{6|}}}|and||<!--
+
   -->{{#ifeq:{{{6|}}}|and||
   -->For {{#ifeq:other uses of {{{6}}}|1|{{{7}}}|{{{6}}}}}, see {{#if:{{{7|}}}|[[{{{7}}}]]|{{Error|Error: Unspecified links for other use 3}}}}}.}} <!--
+
   -->&nbsp;For {{#ifeq:{{{6}}}|1|other uses of {{{7}}}|{{{6}}}}}, see {{#if:{{{7|}}}|"'''[[{{{7}}}]]'''"|{{#ifeq:{{{8|}}}|and|and {{#if:{{{9|}}}|"'''[[{{{9}}}]]'''" |{{Error|Error: Unspecified link 2 for other use 3}}}}}}|{{Error|Error: Unspecified links for other use 3}}}}.}} <!--
 
   -->}}><!--
 
   -->}}><!--
 
   -->}}<!--
 
   -->}}<!--
  -->}}}}<!--
+
  -->}}<!--
-->{{#if: {{{post|{{{post2|}}}}}}|<br />{{{post|{{{post2|}}}}}}}}<!--
+
-->{{#if: {{{post|}}}|<br />{{{post|}}}}}<!--
 
--></th></tr></table></div></includeonly><noinclude>
 
--></th></tr></table></div></includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 23:53, 30 June 2023

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

Usage

Simple invoking method

  • {{About|the usage of this page|other use 1|other use 1}} (Common situation, only 2 usages) →
  • {{About|the usage of this page||disambiguation page}} (Leaving parameter 2 empty to complete the description automatically) →
  • {{About|the usage of this page|Other use 1|Other article 1|and|other article 2}} (Using "and") →
  • {{About|the usage of this page|other use 1|other article 1#subsection{{!}}other article 1 title}} (Using {{!}} instead of the vertical line to display different characters) →
  • {{About|the usage of this page|other use 1|other article 1|other usage 2|other article 2|and|other article 3}} (Feel free to combine them; for other longer expressions, {{Otheruseslist}} is recommended) →
  • {{About||other use 1|other article 1}} (This can be used without specifying pages, leaving parameter 1 empty) →

Compatible with old-style disambiguation box usage

{{About|the character from ''Aria the Scarlet Ammo''|other uses|Aria}} (If used under a section, please add the "section" parameter at the end)

Other descriptions

  • {{About|main use|other use 1|other article 1|section=yes}}
  • {{About|main use|other use 1|main article 1|pre=Add a message at the top.}}
  • {{about|main use|other use 1|other article 1|post=Add a message at the bottom.}}
  • {{About|main use|other use 1|other article 1|pre=Message at the top.|post=Message at the bottom.}}
  • {{About|the video website|other "Biribiri"|Mikoto Misaka|'''offset=6'''}}

Error examples

  • {{about|main use|other use 1|other article 1| |other article 2}} (Some parameters are left empty, resulting in the latter parameter being ignored) →
  • {{about|main use|other use 1}} (Direct error caused by missing parameter) →