Template:NavList: Difference between revisions

Template page
(Created page with "<includeonly> <div class="cards" style="display: flex; flex-wrap: wrap; justify-content: flex-start;"> {{#vardefine: cardCounter | 1}} {{#while: |{{#pos: |{{#var:cardCounter}} |{{{1|}}} }} | <div class="card" style="width: 150px; height: 100px; border: 1px solid #ccc; border-radius: 8px; padding: 10px; margin: 10px; cursor: pointer; position: relative;" onclick="window.location.href='{{#pos: |{{#var:cardCounter}} |{{{3|}}} }}'"> <img src="{{#pos: |{{#var:cardCo...")
 
(Blanked the page)
Tag: Blanking
 
Line 1: Line 1:
<includeonly>
<div class="cards" style="display: flex; flex-wrap: wrap; justify-content: flex-start;">


{{#vardefine: cardCounter | 1}}
{{#while:
  |{{#pos: |{{#var:cardCounter}} |{{{1|}}} }} |
  <div class="card" style="width: 150px; height: 100px; border: 1px solid #ccc; border-radius: 8px; padding: 10px; margin: 10px; cursor: pointer; position: relative;" onclick="window.location.href='{{#pos: |{{#var:cardCounter}} |{{{3|}}} }}'">
    <img src="{{#pos: |{{#var:cardCounter}} |{{{2|}}} }}" alt="{{#pos: |{{#var:cardCounter}} |{{{1|}}} }}" style="max-width: 100%; max-height: 100%; object-fit: cover;">
    <p style="margin: 0; position: absolute; bottom: 5px; left: 10px;">{{#pos: |{{#var:cardCounter}} |{{{1|}}} }}</p>
  </div>
  {{#vardefine: cardCounter | {{#expr: {{#var:cardCounter}} + 1}}}}
}}
</div>
</includeonly>

Latest revision as of 19:32, 21 November 2023