Alterações

Saltar para a navegação Saltar para a pesquisa
1 858 bytes adicionados ,  19h42min de 8 de junho de 2021
sem resumo de edição
Linha 59: Linha 59:  
:I can do this in all languages. Tomorrow, when I can, I do this. [[Utilizador:JaksStrange|JaksStrange]] ([[Utilizador Discussão:JaksStrange|discussão]]) 22h32min de 6 de junho de 2021 (UTC)
 
:I can do this in all languages. Tomorrow, when I can, I do this. [[Utilizador:JaksStrange|JaksStrange]] ([[Utilizador Discussão:JaksStrange|discussão]]) 22h32min de 6 de junho de 2021 (UTC)
 
::I did all the modifications and I would like to know if I can also add the parameter class=inline to the NPC Template. I think this can be very useful, as it is in the Name Template. [[Utilizador:JaksStrange|JaksStrange]] ([[Utilizador Discussão:JaksStrange|discussão]]) 21h22min de 7 de junho de 2021 (UTC)
 
::I did all the modifications and I would like to know if I can also add the parameter class=inline to the NPC Template. I think this can be very useful, as it is in the Name Template. [[Utilizador:JaksStrange|JaksStrange]] ([[Utilizador Discussão:JaksStrange|discussão]]) 21h22min de 7 de junho de 2021 (UTC)
 +
:::I'm ok with allowing for the template to display inline, but [[:Template:NPC]] is not like [[:Template:Name]] in the way it displays things.  Template:Name uses .css styling, while Template:NPC just adds paragraph tags (<code><nowiki><p>...</p></nowiki></code>). So, the change would consist of replacing
 +
:::<pre><p></pre>
 +
:::with something like
 +
:::<pre>{{#ifeq:{{{placement|}}}|inline||<p>}}</pre>
 +
:::and
 +
:::<pre></p></pre>
 +
:::with
 +
:::<pre>{{#ifeq:{{{placement|}}}|inline||</p>}}</pre>
 +
:::I'd like to stay away from naming the parameter "display" or "position" or anything else that refers to a standard .css keyword.  "Placement" isn't used in official .css as far as I know, so that would be a good choice, although you could name it almost anything reasonable. [[Utilizador:Margotbean|margotbean]] ([[Utilizador Discussão:Margotbean|discussão]]) 19h09min de 8 de junho de 2021 (UTC)
 +
::::I did some tests and got a result that worked, it was as follows:
 +
::::use this in the beginning
 +
::::<pre>{{#ifeq:{{{class|}}}|inline|<span class="nametemplateinline">|<p>}}</pre>
 +
::::and this in the end
 +
::::<pre>{{#ifeq:{{{class|}}}|inline|</span>|</p>}}</pre>
 +
::::Can this be used? [[Utilizador:JaksStrange|JaksStrange]] ([[Utilizador Discussão:JaksStrange|discussão]]) 19h17min de 8 de junho de 2021 (UTC)
 +
::::Testing what you suggested, I see that just
 +
::::<pre>{{#ifeq:{{{class|}}}|inline||<p>}}</pre>
 +
::::and
 +
::::<pre>{{#ifeq:{{{class|}}}|inline||</p>}}</pre>
 +
::::already works, but can I use the word "class" or do you want me to use "placement"?. [[Utilizador:JaksStrange|JaksStrange]] ([[Utilizador Discussão:JaksStrange|discussão]]) 19h24min de 8 de junho de 2021 (UTC)
 +
::::I'd like you to use a different word than "class". [[Utilizador:Margotbean|margotbean]] ([[Utilizador Discussão:Margotbean|discussão]]) 19h42min de 8 de junho de 2021 (UTC)
105 522

edições

Menu de navegação