Editing Template:Further/doc
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 19: | Line 19: | ||
This template accepts the following parameters: | This template accepts the following parameters: | ||
− | * <code>1</code>, <code>2</code>, <code>3</code> | + | * <code>1</code>, <code>2</code>, <code>3</code>... - the pages to link to. At least one page name is required. Categories and files are automatically escaped with the [[Help:Colon trick|colon trick]], and links to sections are automatically formatted as ''page § section'', rather than the MediaWiki default of ''page#section''. |
* <code>selfref</code> - if set to "yes", "y", "true" or "1", adds the CSS class "selfref". This is used to denote self-references to Wikipedia. See [[Template:Selfref]] for more information. | * <code>selfref</code> - if set to "yes", "y", "true" or "1", adds the CSS class "selfref". This is used to denote self-references to Wikipedia. See [[Template:Selfref]] for more information. | ||
* <code>category</code> - if set to "no", "n", "false", or "0", suppresses the error tracking category ([[:Category:Hatnote templates with errors]]). This only has an effect if the first positional parameter (the page to link to) is omitted. | * <code>category</code> - if set to "no", "n", "false", or "0", suppresses the error tracking category ([[:Category:Hatnote templates with errors]]). This only has an effect if the first positional parameter (the page to link to) is omitted. | ||
Line 25: | Line 25: | ||
== Examples == | == Examples == | ||
− | * <code><nowiki>{{further|Article}}</nowiki></code> | + | * <code><nowiki>{{further|Article}}</nowiki></code> → {{further|Article}} |
− | * <code><nowiki>{{further|Article1|Article2|Article3}}</nowiki></code> | + | * <code><nowiki>{{further|Article1|Article2|Article3}}</nowiki></code> → {{further|Article1|Article2|Article3}} |
== Errors == | == Errors == | ||
Line 33: | Line 33: | ||
* {{further|category=no}} | * {{further|category=no}} | ||
− | If you see this error message, it is for one of | + | If you see this error message, it is for one of three reasons: |
# No parameters were specified (the template code was <code><nowiki>{{further}}</nowiki></code>). Please use <code><nowiki>{{further|</nowiki>''page''<nowiki>}}</nowiki></code> instead. | # No parameters were specified (the template code was <code><nowiki>{{further}}</nowiki></code>). Please use <code><nowiki>{{further|</nowiki>''page''<nowiki>}}</nowiki></code> instead. | ||
− | # Some parameters were specified, but | + | # Some parameters were specified, but the page name wasn't included. For example, the template text <code><nowiki>{{further|selfref=yes}}</nowiki></code> will produce this error. Please use (for example) <code><nowiki>{{further|</nowiki>''page''<nowiki>|selfref=yes}}</nowiki></code> instead. |
− | # A page name was specified, but it contains an equals sign ("="). The equals sign has a special meaning in template code, and because of this it cannot be used in template parameters that do not specify a parameter name. For example, the template code <code><nowiki>{{further|1+1=2|2+2=4}}</nowiki></code> will produce this error. To work around this, you can specify the parameter name | + | # A page name was specified, but it contains an equals sign ("="). The equals sign has a special meaning in template code, and because of this it cannot be used in template parameters that do not specify a parameter name. For example, the template code <code><nowiki>{{further|1+1=2|2+2=4}}</nowiki></code> will produce this error. To work around this, you can specify the parameter name explictly by using <code>1=</code>, <code>2</code>, etc., before the page name, like this: <code><nowiki>{{further|1=1+1=2|2=2+2=4}}</nowiki></code>. |
− | |||
If you see this error message and are unsure of what to do, please post a message on [[WP:HD|the help desk]], and someone should be able to help you. | If you see this error message and are unsure of what to do, please post a message on [[WP:HD|the help desk]], and someone should be able to help you. | ||
Line 43: | Line 42: | ||
Pages that contain this error message are tracked in [[:Category:Hatnote templates with errors]]. | Pages that contain this error message are tracked in [[:Category:Hatnote templates with errors]]. | ||
− | + | {{Hatnote templates documentation}} | |
− | |||
− | |||
− | {{Hatnote templates}} | ||
{{Collapse top|TemplateData}} | {{Collapse top|TemplateData}} | ||
{{TemplateDataHeader}} | {{TemplateDataHeader}} |