Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:WikiCard: Difference between revisions

Template page
No edit summary
Tag: Reverted
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html>
<noinclude><html><div class="custom-grid"></html>
{{WikiCard|Test: I'm gonna fucking test myself}}{{WikiCard|Test: I'm gonna fucking test myself}}{{WikiCard|Test: I'm gonna fucking test myself}}{{WikiCard|Test: I'm gonna fucking test myself}}{{WikiCard|Test: I'm gonna fucking test myself}}<html></div></html></noinclude><includeonly><html>
<div class="grid-item wiki-card">
<div class="grid-item wiki-card">
   <a href="/w/</html>{{{1}}}<html>">
   <a href="/w/</html>{{{1}}}<html>">
Line 12: Line 13:
}
}
</style>
</style>
 
</html></includeonly>
<script>
(function() {
  const script = document.currentScript;
  const card = script.closest('.wiki-card');
  if (!card) return;
 
  const el = card.querySelector('.wiki-card-content');
  if (!el) return;
 
  // Only process plain text
  if (el.children.length === 0) {
    const text = el.textContent.trim();
    const parts = text.split(': ');
 
    if (parts.length > 1) {
      const first = parts.shift();
      const rest = parts.join(': ');
      el.innerHTML = first + ': <span class="no-wrap">' + rest + '</span>';
    }
  }
})();
</script>
</html>

Latest revision as of 08:12, 17 April 2026