User talk:Storm Aurora: Difference between revisions

Line 68: Line 68:
:Well, the way I learned to create templates is by looking at other templates to see how they work! [[Template:MastersEventInfobox]] and [[Template:MastersMissionTable]] are good examples of what you can do with templates (I created both of those myself, so I might be biased :P). [[:Category:Other templates]] has some templates for attacks in other spin-offs, so that might be a good place to start building the specific template you have in mind. If you click the "edit this page" or "view source" button on a template page, you can view the source code and see how it's constructed.
:Well, the way I learned to create templates is by looking at other templates to see how they work! [[Template:MastersEventInfobox]] and [[Template:MastersMissionTable]] are good examples of what you can do with templates (I created both of those myself, so I might be biased :P). [[:Category:Other templates]] has some templates for attacks in other spin-offs, so that might be a good place to start building the specific template you have in mind. If you click the "edit this page" or "view source" button on a template page, you can view the source code and see how it's constructed.
:A couple basic tips to help with reading template code: parameters are denoted with triple curly braces, like <code>{{{this}}}</code>. If there's a word in between the braces, that parameter is a named parameter, so you'll have to specify the name of the parameter in the template call (i.e. <code><nowiki>{{incomplete|needs=Missing image}}</nowiki></code>). If there's a number in between the braces, that's an unnamed parameter, which just need to be placed in a specific order in the template call. For example, the 2nd parameter in the template call is automatically passed to the <code>{{{2}}}</code> parameter. Lastly, if you see a parameter like <code><nowiki>{{{this|example}}}</nowiki></code>, "example" is the default value of the "this" parameter. If you don't specify a value for "this", then "example" will be used by default. [[User:Storm Aurora|'''<span style="background:-webkit-linear-gradient(left,#9CB8C6,#625A88);-webkit-background-clip:text;-webkit-text-fill-color:transparent;">Storm Aurora</span>''']] ([[User talk:Storm Aurora|talk]]) 18:54, 2 November 2023 (UTC)
:A couple basic tips to help with reading template code: parameters are denoted with triple curly braces, like <code>{{{this}}}</code>. If there's a word in between the braces, that parameter is a named parameter, so you'll have to specify the name of the parameter in the template call (i.e. <code><nowiki>{{incomplete|needs=Missing image}}</nowiki></code>). If there's a number in between the braces, that's an unnamed parameter, which just need to be placed in a specific order in the template call. For example, the 2nd parameter in the template call is automatically passed to the <code>{{{2}}}</code> parameter. Lastly, if you see a parameter like <code><nowiki>{{{this|example}}}</nowiki></code>, "example" is the default value of the "this" parameter. If you don't specify a value for "this", then "example" will be used by default. [[User:Storm Aurora|'''<span style="background:-webkit-linear-gradient(left,#9CB8C6,#625A88);-webkit-background-clip:text;-webkit-text-fill-color:transparent;">Storm Aurora</span>''']] ([[User talk:Storm Aurora|talk]]) 18:54, 2 November 2023 (UTC)
::This next part is going to make me look ignorant, but first, I thank you for all the info that you gave to me in your messages! So, I am told that I should create a new template in a user subpage, and I do that by "mak[ing] an article at User:<yourname>/<pagename>."  I can find my own talk and user pages, and I know how to make a new section, but I'm afraid that making a user subpage is out of my element now.  So, how I find this ''User:<yourname>/<pagename>''?  I am confident that your expertise in user subpages will be a wonderful guiding star! [[User:Solemn Mac|Solemn Mac]] ([[User talk:Solemn Mac|talk]]) 06:32, 3 November 2023 (UTC)
2,549

edits