Eisspeedway

Help talk:Template: Difference between revisions

Content deleted Content added
Lowercase sigmabot III (talk | contribs)
m Archiving 2 discussion(s) to Help talk:Template/Archive 4) (bot
Line 198: Line 198:


I notice that [[Help:Template#Categorize pages by template inclusion]] mentions that "placing articles into ordinary content categories [using category definitions] is discouraged". Can anyone point me to some details on why this is? I was considering experimenting with {{tl|Infobox U.S. Presidential Document}} to try and automate categorisation by signing President, but I'll gladly leave it alone if it's not advised. — [[User:Sasuke Sarutobi|Sasuke Sarutobi]] ([[User talk:Sasuke Sarutobi|talk]]) 13:47, 27 March 2018 (UTC)
I notice that [[Help:Template#Categorize pages by template inclusion]] mentions that "placing articles into ordinary content categories [using category definitions] is discouraged". Can anyone point me to some details on why this is? I was considering experimenting with {{tl|Infobox U.S. Presidential Document}} to try and automate categorisation by signing President, but I'll gladly leave it alone if it's not advised. — [[User:Sasuke Sarutobi|Sasuke Sarutobi]] ([[User talk:Sasuke Sarutobi|talk]]) 13:47, 27 March 2018 (UTC)

== Can't find help on <nowiki>{{#section:}}</nowiki> ==

I found template usage, similar to <nowiki>{{#if:}}</nowiki> expression. It is used here: [[Calgary Roughnecks#Current roster]]. Could you please point me to some documentation of <nowiki>{{#section:}}</nowiki>? —&#8288;[[User:Andrybak|andrybak]] ([[User talk:Andrybak|talk]]) 13:42, 20 August 2018 (UTC)
:

Revision as of 13:42, 20 August 2018

WikiProject iconWikipedia Help NA‑class High‑importance
WikiProject iconThis page is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the Help Menu or Help Directory. Or ask for help on your talk page and a volunteer will visit you there.
NAThis page does not require a rating on the project's quality scale.
HighThis page has been rated as High-importance on the project's importance scale.
WikiProject iconTemplates
WikiProject iconThis page is within the scope of WikiProject Templates, a group dedicated to improving the maintenance of Wikipedia's templates. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.

Problem with if scripts

I'm a user on the Danish version of Uncyclopedia ([1]). I've been trying to get this template to work in a few days, but somehow it just won't do as I want. It's meant to create a table with two rows and a picture to the right. In the upper row, there is going to be security marks for a product, while the lower row is going to have up to four columns with product descriptions.

The problem lies in the upper row, as the lower row already works. Se the result here: [2]

Here's the script (most of it is in English; only security mark descriptions are in Danish). You should look at the script of this page, as Wiki puts everything into one line here:

{| border="1" class="metadata" style="width:100%; background-color:rgb(255,102,0)" | {{ #ifeq: {{{picton|0}}} | 0 | colspan="2" | }} style="align:center;" | {{ #if: {{{1mark|}}} | {| | [[billede:{{ #switch: {{{1mark|}}} | ætsende | miljøfarlig | lokalirriterende | giftig | eksplosiv | brandnærende | brandfarlig = {{{1mark|}}}.gif | #default = {{{1mark|}}} }}]] |- ! <big>{{{1head|}}}</big> |- | {{{1text|}}} |} | }} {{ #if: {{{2mark}}} | {| | [[billede:{{ #switch: {{{2mark|}}} | ætsende | miljøfarlig | lokalirriterende | giftig | eksplosiv | brandnærende | brandfarlig = {{{2mark|}}}.gif | #default = {{{2mark|}}} }}]] |- ! <big>{{{2head|}}}</big> |- | {{{2text|}}} |} | }} {{ #if: {{{3mark}}} | {| | [[billede:{{ #switch: {{{3mark|}}} | ætsende | miljøfarlig | lokalirriterende | giftig | eksplosiv | brandnærende | brandfarlig = {{{3mark|}}}.gif | #default = {{{3mark|}}} }}]] |- ! <big>{{{3head|}}}</big> |- | {{{3text|}}} |} | }} {{ #if: {{{4mark}}} | {| | [[billede:{{ #switch: {{{4mark|}}} | ætsende | miljøfarlig | lokalirriterende | giftig | eksplosiv | brandnærende | brandfarlig = {{{4mark|}}}.gif | #default = {{{4mark|}}} }}]] |- ! <big>{{{4head|}}}</big> |- | {{{4text|}}} |} | }} {{ #if: {{{5mark}}} | {| | [[billede:{{ #switch: {{{5mark|}}} | ætsende | miljøfarlig | lokalirriterende | giftig | eksplosiv | brandnærende | brandfarlig = {{{5mark|}}}.gif | #default = {{{5mark|}}} }}]] |- ! <big>{{{5head|}}}</big> |- | {{{5text|}}} |} | }} {{ #if: {{{6mark}}} | {| | [[billede:{{ #switch: {{{6mark|}}} | ætsende | miljøfarlig | lokalirriterende | giftig | eksplosiv | brandnærende | brandfarlig = {{{6mark|}}}.gif | #default = {{{6mark|}}} }}]] |- ! <big>{{{6head|}}}</big> |- | {{{6text|}}} |} | }} {{ #if: {{{7mark}}} | {| | [[billede:{{ #switch: {{{7mark|}}} | ætsende | miljøfarlig | lokalirriterende | giftig | eksplosiv | brandnærende | brandfarlig = {{{7mark|}}}.gif | #default = {{{7mark|}}} }}]] |- ! <big>{{{7head|}}}</big> |- | {{{7text|}}} |} | }} {{ #if: {{{8mark}}} | {| | [[billede:{{ #switch: {{{8mark|}}} | ætsende | miljøfarlig | lokalirriterende | giftig | eksplosiv | brandnærende | brandfarlig = {{{8mark|}}}.gif | #default = {{{8mark|}}} }}]] |- ! <big>{{{8head|}}}</big> |- | {{{8text|}}} |}|}} | {{ #ifeq: {{{picton|0}}} | 1 | rowspan="2" width="{{{pictwidth|}}}" }} | {{ #ifeq: {{{picton|0}}} | 1 | [[billede:{{{pictaddr|}}}|{{{pictwidth|}}}]] }} |- | {{ #ifeq: {{{picton|0}}} | 0 | colspan="2" }} | {{ #ifexpr: {{{cols|1}}} >= 1 |<div style="width: {{ #expr: 100 /{{{cols|1}}} }}%; float: left;">{{{1col|}}}</div>}} {{ #ifexpr: {{{cols|1}}} >= 2 |<div style="width: {{ #expr: 100 /{{{cols|1}}} }}%; float: left;">{{{2col|}}}</div>}} {{ #ifexpr: {{{cols|1}}} >= 3 |<div style="width: {{ #expr: 100 /{{{cols|1}}} }}%; float: left;">{{{3col|}}}</div>}} {{ #ifexpr: {{{cols|1}}} >= 4 |<div style="width: {{ #expr: 100 /{{{cols|1}}} }}%; float: left;">{{{4col|}}}</div>}} |} — Preceding unsigned comment added by 90.185.27.224 (talk) 18:00, 16 November 2008

Template naming conventions

I've suggested standardizing template naming, at Wikipedia talk:Template namespace#Template naming conventions. If you're frustrated with typing template names and constantly guessing at the right capitalization and spacing, please chime in. Michael Z. 2009-01-10 17:46 z

italics for foreign scripts = bad

Are templates smart enough to recognize foreign scripts by their unicode or something and not italicise them? This would be especially good for {{wiktionary}} Siuenti (talk) 01:41, 3 April 2017 (UTC)[reply]

Categories

How do you make templates put articles in tracking categories? In general, you are supposed to put categories at the end of the page. Does this not apply to tracking categories?

Thanks for your help!

Elliot321 (talk) 23:12, 8 May 2017 (UTC)[reply]

@Elliot321: All categories can be placed anywhere on the page. It's just our style (Wikipedia:Manual of Style/Layout#Order of article elements) to place them at the end when they are written directly in the source. PrimeHunter (talk) 23:23, 8 May 2017 (UTC)[reply]

Non-free image use

I'm wondering if there should be language added to this page about image use, in particular non-free image use. I occasionally come across a template where a non-free image is being used even though such usage is prohibited by WP:NFCC#9. I briefly scanned this page and was not able to find anything about image use at all. So, perhaps something along the lines of WP:DRAFTS#Preparing drafts, WP:UP#Non-free files or WP:UBX#Caution about image use should be added here as well. -- Marchjuly (talk) 02:54, 17 May 2017 (UTC)[reply]

Whitespace in template names?

I've noticed some uses of templates (e.g. infoboxes) that include trailing whitespace (usually a newline) after the template name. This article suggests that only named parameters have whitespace trimmed, though it seems that template names do as well. Is this correct? Rriegs (talk) 17:19, 28 June 2017 (UTC)[reply]

That is correct. Template names, like other page names, cannot start or end with whitespace characters so if whitespace wasn't trimmed/ignored around the template name in a call then no template could be called. The only alternative to trimming would be to disallow whitespace but programming languages usually allow whitespace between syntactic elements. PrimeHunter (talk) 21:59, 28 June 2017 (UTC)[reply]

Malfunctioning tennis template

Would someone take a look at this template query from the Tennis Project talk page. Seems strange to me, but with all the experts here I'm sure it's a simple explanation. Thanks. Fyunck(click) (talk) 10:27, 9 August 2017 (UTC)[reply]

Template error at Greensboro College?

Can someone please take a look at Greensboro College? There is some text at the bottom of the article that I think is coming from a (malfunctioning or vandalized?) template. Thanks! ElKevbo (talk) 19:47, 26 September 2017 (UTC)[reply]

@ElKevbo: Not vandalism, more likely a misunderstanding of what <noinclude>...</noinclude> does. The problem was this edit by Jweiss11 (talk · contribs) which I have fixed; it also affected Spartanburg High School. --Redrose64 🌹 (talk) 20:48, 26 September 2017 (UTC)[reply]
Redrose64, I understand how noinclude and includeonly tags work. Looks like I accidentally removed the opening noinclude tag with that edit. Thank for making the fix. Jweiss11 (talk) 21:23, 26 September 2017 (UTC)[reply]
@Redrose64: Thanks for the very prompt response and assistance! Much appreciated. ElKevbo (talk) 21:24, 26 September 2017 (UTC)[reply]

I created Template:Location of North Korea's Nuclear tests. There are Wikilinks such as 2006 in the template and the wilinks work in the Template:Location of North Korea's Nuclear tests page. However I placed the template in an article, the wikilinks were disabled. What's wrong with the template?―― Phoenix7777 (talk) 04:01, 28 September 2017 (UTC)[reply]

@Phoenix7777: Nothing! The article just needed to be purged to pick up the latest version of the template. -- John of Reading (talk) 05:43, 28 September 2017 (UTC)[reply]
@John of Reading: Thanks a lot! The wikilinks were enabled.―― Phoenix7777 (talk) 07:54, 28 September 2017 (UTC)[reply]

Categorisation by inclusion

I notice that Help:Template#Categorize pages by template inclusion mentions that "placing articles into ordinary content categories [using category definitions] is discouraged". Can anyone point me to some details on why this is? I was considering experimenting with {{Infobox U.S. Presidential Document}} to try and automate categorisation by signing President, but I'll gladly leave it alone if it's not advised. — Sasuke Sarutobi (talk) 13:47, 27 March 2018 (UTC)[reply]

Can't find help on {{#section:}}

I found template usage, similar to {{#if:}} expression. It is used here: Calgary Roughnecks#Current roster. Could you please point me to some documentation of {{#section:}}? —⁠andrybak (talk) 13:42, 20 August 2018 (UTC)[reply]